<style>
    body{
        background-color: #F9F9F9;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
        width: 200px;
    }
    td>label{
        margin-right: 10px;
        float: right;
    }
</style>
<script>
    var modify = {{ modify }};
    var iId = {% if iId is defined %} {{ iId }} {% else %} null {% endif %};
    var grade = {% if applyDataArr['iClassId'] is defined %} {{ applyDataArr['iClassId'] }} {% else %} null {% endif %};
    var volume = {% if applyDataArr['iVolumeId'] is defined %} {{ applyDataArr['iVolumeId'] }} {% else %} null {% endif %};
    var subject = {% if applyDataArr['iSubject'] is defined %} {{ applyDataArr['iSubject'] }} {% else %} null {% endif %};
    var app = {% if applyDataArr['sAppCode'] is defined %} '{{ applyDataArr['sAppCode'] }}' {% else %} null {% endif %};
</script>
<form id="reference_schedule_form" class="xh-form"  method="post">
    <div class="xh-area-form">
        <table style="width: 100%">
            {% if modify == 2 %}<!-- 修改 -->
                <tr>
                    <td ><label>年级：</label></td>
                    <td >
                        <select id="class" class="form-control" style="width: 170px" name="class">
                            <option value="" selected>请选择</option>
                        </select>
                    </td>
                    <td ><label>教辅年级：</label></td>
                    <td >
                        <select id="volume" name="volume" style="width: 150px" class="form-control">
                            <option value="1">上册</option>
                            <option value="2">下册</option>
                            <option value="3">全册</option>
                        </select>
                    </td>
                    <td ><label>科目：</label></td><td >
                        <select id="subject" class="form-control" style="width: 160px" name="subject">
                            <option value="" selected>请选择</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td ><label>应用：</label></td>
                    <td >
                        <select id="app" style="width: 170px" class="form-control"  name="app">
                            <option value="" selected>请选择</option>
                        </select>
                    </td>
                    <td ><label>教辅书名：</label></td>
                    <td colspan="3">
                        {% if applyDataArr['sBookName'] %}
                            <input id="bookName" name="bookName" type="text" value="{{ applyDataArr['sBookName'] }}" autocomplete="off">
                        {% else %}
                            <input id="bookName" name="bookName" type="text" placeholder="必填" autocomplete="off">
                        {% endif %}
                    </td>
                </tr>
                <tr>
                    <td><label>录入需求：</label></td>
                    <td colspan="5">
                        <textarea id="typeIn" name="typeIn" class="form-control" type="text" placeholder="必填">{{ applyDataArr['sTypeIn'] }}</textarea>
                    </td>
                </tr>
                <tr>
                    <td ><label>购买链接：</label></td>
                    <td colspan="5">
                        <input id="buyUrl" class="form-control" name="buyUrl" type="text" value="{{ applyDataArr['sBuyUrl'] }}" placeholder="必填" autocomplete="off">
                    </td>
                </tr>
                <tr>
                    <td ><label>备注：</label></td>
                    <td colspan="5">
                        <textarea id="remark" name="remark" class="form-control" type="text">{{ applyDataArr['sRemark'] }}</textarea>
                    </td>
                </tr>
            {% else %}<!-- 新建 -->
                <tr>
                    <td ><label>年级：</label></td>
                    <td >
                        <select id="class" style="width: 170px" class="form-control" name="class"><option value="" selected>请选择</option></select>
                    </td>
                    <td ><label>上下册：</label></td>
                    <td >
                        <select id="volume" name="volume" style="width: 150px" class="form-control">
                            <option value="1">上册</option>
                            <option value="2">下册</option>
                            <option value="3">全册</option>
                        </select>
                    </td>
                    <td ><label>科目：</label></td>
                    <td >
                        <select id="subject" style="width: 160px" class="form-control"  name="subject">
                            <option value="" selected>请选择</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td ><label>应用：</label></td>
                    <td >
                        <select id="app" style="width: 170px" class="form-control"  name="app">
                            <option value="" selected>请选择</option>
                        </select>
                    </td>
                    <td ><label>教辅书名：</label></td>
                    <td colspan="3">
                        <input id="bookName" name="bookName" type="text" placeholder="必填" autocomplete="off">
                    </td>
                </tr>
                <tr>
                    <td><label>录入需求：</label></td><td colspan="5" style="width: 200px;"><textarea style="height:50px" id="typeIn" name="typeIn" class="form-control" type="text" placeholder="必填"></textarea></td>
                </tr>
                <tr>
                    <td><label>购买链接：</label></td><td colspan="5"><input id="buyUrl" class="form-control" name="buyUrl" type="text" placeholder="必填" autocomplete="off"></td>
                </tr>
                <tr>
                    <td><label>备注：</label></td>
                    <td colspan="5"><textarea style="height:50px" id="remark" name="remark" type="text"></textarea></td>
                </tr>
            {% endif %}
        </table>
    </div>
</form>